package com.promise.jokerdream.response.pc

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

// 乱斗回包
@Serializable
data class QueryChaosWarResponse(
    override val result: Int,
    override val msg: String = "",
    // 任务列表
    @SerialName("taskarray")
    val taskArray: List<ChaosWarTask> = emptyList(),
    // 领取的奖励次数
    @SerialName("dailycompnum")
    val dailyCompNum: Int = 0,
    // 每日可以领奖的次数
    @SerialName("dailycancompnum")
    val dailyCanCompNum: Int = 0,
    // 可刷新次数
    val dailyFreeRefreshTimes: Int = 0,
): BasePCResponse {
    override fun getDescription(): String {
        return msg
    }
}

@Serializable
data class ChaosWarTask(
    val id: Int = 0,
    // 任务描述
    val desc: String = "",
    // 2为未完成、3为已完成、4为已领取
    val state: Int = 0,
    @SerialName("comtimes")
    val comTimes: Int = 0,
    @SerialName("needcomtimes")
    val needComTimes: Int = 0,
)
